#ifndef includes_h_
#define includes_h_

// Nice instructions
#define set_bit( reg, bit ) (reg |= (1 << bit))
#define clear_bit( reg, bit ) (reg &= ~(1 << bit))
#define test_bit( reg, bit ) (reg & (1 << bit))

//Settings
#define REDUCED
#define F_CPU 4915200
#define BAUDRATE 9600
#define ADC_BASE 0x1800

//AVR-includes

#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include <inttypes.h>
#include <util/delay.h>


//Definitions

#ifndef FALSE
#define FALSE   0
#define TRUE    (!FALSE)
#endif

#ifndef AUTO
#define AUTO    3
#endif

#ifndef BOOL
#define BOOL    char
#endif

#ifndef NULL
#define NULL    0
#endif

//Local includes

#include "adc.h"
//#include "bcd.h"
#include "sram.h"
#include "uart.h"
#include "spi_master.h"
#include "mcp.h"
#include "can.h"
#include "button.h"
#include "butterfly_interface.h"
#include "game.h"
	
#endif
